<?php
/**
 * Created by PhpStorm.
 * User: zyark
 * Date: 2018/1/19
 * Time: 10:02
 */

namespace app\common\model;


use think\Model;

class UserNote extends Model
{
    public function note(){
        return $this->belongsTo('Note','note_id')->setEagerlyType(0);
    }

    public function user(){
        return $this->belongsTo('User','user_id')->setEagerlyType(0);
    }
}